<?php
class Ajax extends CI_Controller{
	public function __construct() {
			# code...
		parent::__construct();
		$this->load->helper("url");			
	}
	public function index() {

	}
	public function ajax_level2($id)
	{
		echo "
	<select name='level2' size='1'>
	<option value='' selected >Level 2</option>";
  	 $this->load->model("Mlist");
  	 $data=$this->Mlist->level2($id);
	foreach($data as $items)
		{
			echo " <option value='{$items["idSong"]}?>' >{$items["strFileName"]}</option>";
		}
    echo "</select>";
	}
}
?>